package com.qdlc.p2p.biz.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.service.MemberInfosService;
import com.qdlc.p2p.dal.dao.MemberInfosDao;
import com.qdlc.p2p.dal.dto.MemberInfos;

@Service
public class MemberInfosServiceImpl implements MemberInfosService {

	@Resource
	MemberInfosDao memberInfosDao;

	@Override
	public MemberInfos findByUserId(long userId) {
		return memberInfosDao.findByUserId(userId);
	}

	@Override
	public MemberInfos saveEntity(MemberInfos member) {
		return memberInfosDao.saveEntity(member);
	}

	@Override
	public MemberInfos findByIdentityId(String tppId) {
		return memberInfosDao.findByTppId(tppId);
	}
}
